<!doctype html>
[#escape x as (x)!?html]
<html lang="zh-CN">
<head>
<meta charset="utf-8"/>
<title>${user.username}_${site.fullNameOrName}${global.customs['poweredBy']}</title>
<meta name="keywords" content="${node.keywords}"/>
<meta name="description" content="${node.description}"/>
<link href="_files/global.css" rel="stylesheet"/>
<link href="_files/style.css" rel="stylesheet"/>
[#include 'inc_js.html'/]
<script src="${ctx}/static/vendor/My97DatePicker/cn_WdatePicker.js"></script>
<script src="${ctx}/static/vendor/ueditor/ueditor.config.js"></script>
<script src="${ctx}/static/vendor/ueditor/ueditor.all.min.js"></script>
<script src="${ctx}/static/vendor/ueditor/lang/zh-cn/zh-cn.js"></script>
<style>
.user-top{background-color:#008ee1;color:#fff;}
.user-top a{color:#fff;text-decoration:none;}
.user-top a:hover{color:#fff;}
.ct-bg{background-color:#fff;border:1px solid #dcdcdc;}
.user-box{border:1px solid #ccc;background-color:#fff;}
.user-box-head{padding:0 12px;border-bottom:1px solid #eee;line-height:32px;height:32px;font-size:14px;font-weight:bold;font-family:"Microsoft YaHei";}
.user-box-body{padding:5px 12px;}
.user-box-body-item{padding:3px 0;}
.user-box-body-item a{color:#4466bb;font-size:14px;font-family:"Microsoft YaHei";text-decoration:none;display:block;}
 
.user-box-body-item a:hover{}
.user-box-body-item label{color:#666;}
.user-nav{list-style:none;padding-left:0;overflow:hidden; border-bottom:1px solid #008ee1;font-family:"Microsoft YaHei";font-size:14px;}
.user-nav-item{float:left;margin-left:12px;padding:0 12px;line-height:28px;background-color:#e6e6e6;}
.user-nav-item a{color:#666;text-decoration:none;}
.user-nav-item a:hover{color:#000;}
.user-nav-item-curr{background-color:#008ee1;}
.user-nav-item-curr a{color:#fff;}
.user-nav-item-curr a:hover{color:#fff;}

.form-section{padding:5px 0;}
.form-label{color:#666;font-weight:bold;}
.form-content{padding:3px 0;}
.form-content input[type=text],.form-content input[type=password]{height:18px;line-height:18px;}
</style>
<script>
$(function(){
	$("#validForm").validate();
});
</script>
</head>
<body style="background-color:#f4f4f4;">
<div class="user-top">
	<div class="w center c999" style="height:32px;line-height:32px;">
		<div class="left">
			<a class="topa ml5" href="${ctx}/" target="_blank">首页</a>
			<a class="topa ml5" href="${ctx}/sitemap" target="_blank">网站地图</a>
			<a class="topa ml5" href="${ctx}/rss">RSS订阅</a>
			<a class="topa ml5" href="${ctx}/tags">TAGS标签</a>
		</div>
		<div class="right">
			<script type="text/javascript" src="${ctx}/login_include?d=${.now?time}"></script>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div class="w center mt10 oh">
	[#include 'sys_member_my_header.html'/]
</div>
<div class="w center mt10 oh">
	<div class="left" style="width:240px;">
		<div class="user-box">
			<div class="user-box-head">账号管理</div>
			<div class="user-box-body">
				[#include 'sys_member_my_left.html'/]
			</div>
		</div>
	</div>
	<div class="right user-box" style="width:740px;">
		<div class="user-box-head">[#if oprt=='edit']稿件修改[#else]稿件发布[/#if]</div>
		<form id="validForm" action="${ctx}/my/contribution/[#if oprt=='edit']update[#else]create[/#if]" method="post" style="padding:10px 16px;">
			<input type="hidden" name="nextUrl" value="${ctx}/my/contribution"/>
			<input type="hidden" name="id" value="${bean.id}"/>
			<!-- 对于退回的稿件，修改同时再次提交审核 -->
			<input type="hidden" name="pass" value="true"/>
			<div class="form-section">
				<div class="form-label"><em class="required">*</em>栏目：</div>
				<div class="form-content">
					<select name="nodeId" class="required">
						[#list nodeList as node]
							[#if node.isContriPerm(user, groups)]
								[#if node.treeLevel > 0]<option value="${node.id}"[#if (bean.node.id)?? && node.id == bean.node.id] selected="selected"[/#if]>[#if node.treeLevel > 1][#list 2..node.treeLevel as i]--[/#list][/#if]${node.name}</option>[/#if]
							[/#if]
						[/#list]
					</select>
				</div>
			</div>
			<div class="form-section">
				<div class="form-label"><em class="required">*</em>标题：</div>
				<div class="form-content"><input type="text" name="title" value="${bean.title}" class="required" style="width:500px;"/></div>
			</div>
			<div class="form-section">
				<div class="form-label"><em class="required">*</em>正文：</div>
				<div class="form-content">
					<!-- <textarea id="text" name="text">${bean.text}</textarea> -->
					<script id="text" name="text" type="text/plain"></script>
					<script type="text/javascript">
					$(function() {
						window.UEDITOR_HOME_URL = "${ctx}/static/vendor/ueditor/";
						var editor_text = UE.getEditor('text',{
							toolbars: window.UEDITOR_CONFIG.toolbars_BasicPage,
							//initialFrameWidth:700,
							initialFrameHeight:300,
					    serverUrl:"${dy}/ueditor?ueditor=true"
						});
						editor_text.ready(function() {
				       editor_text.setContent("[#noescape]${(bean.text)!?js_string}[/#noescape]");
				    });
					});
					</script>
				</div>
			</div>
			<div class="form-section">
				<input type="submit" value="提交" style="height:25px;width:60px;"/>
			</div>
		</form>
	</div>
</div>
<div style="border-top:1px solid #e6e6e6;padding-bottom:20px;margin-top:30px;"></div>
<div class="w center text-center">
	<div class="powered">    
		<span>Powered by <strong style="font-size:12px"><a href="http://www.jspxcms.com" target="_blank" class="c-666 a-hover">Jspxcms</a></strong></span>
    <span>&copy; 2010-2017 Jspxcms All Rights Reserved</span>
	</div>
	<div class="copyright">
		<span>${site.customs['company']} 版权所有</span>
		<span><a href="http://www.miibeian.gov.cn" target="_blank" class="icp c-666 a-hover">${site.customs['icp']}</a></span>
	</div>
</div>
</body>
</html>
[/#escape]